|
leddriver2 2.2.0
|
Functions | |
| void | leddriver2_cfg_setup (leddriver2_cfg_t *cfg) |
| Config Object Initialization function. | |
| LEDDRIVER2_RETVAL | leddriver2_init (leddriver2_t *ctx, leddriver2_cfg_t *cfg) |
| Initialization function. | |
| void | leddriver2_set_duty_cycle (leddriver2_t *ctx, float duty_cycle) |
| Generic sets PWM duty cycle. | |
| void | leddriver2_pwm_stop (leddriver2_t *ctx) |
| Stop PWM module. | |
| void | leddriver2_pwm_start (leddriver2_t *ctx) |
| Start PWM module. | |
| void leddriver2_cfg_setup | ( | leddriver2_cfg_t * | cfg | ) |
Config Object Initialization function.
| cfg | Click configuration structure. |
@description This function initializes Click configuration structure to init state.
| LEDDRIVER2_RETVAL leddriver2_init | ( | leddriver2_t * | ctx, |
| leddriver2_cfg_t * | cfg ) |
Initialization function.
| leddriver2 | Click object. |
| cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this Click.
| void leddriver2_pwm_start | ( | leddriver2_t * | ctx | ) |
Start PWM module.
| ctx | Click object. |
@description This function starts PWM module.
| void leddriver2_pwm_stop | ( | leddriver2_t * | ctx | ) |
Stop PWM module.
| ctx | Click object. |
@description This function stops PWM module.
| void leddriver2_set_duty_cycle | ( | leddriver2_t * | ctx, |
| float | duty_cycle ) |
Generic sets PWM duty cycle.
| ctx | Click object. |
| duty_cycle | Duty cycle. |
@description This function sets the PWM duty cycle.